import java.awt.*;
import java.sql.SQLOutput;
import java.sql.Struct;

public class Main{
    public static void main(String[] args) {
        int a=10;
        String b="abcd";

        System.out.println(a);
        System.out.println(b);
        System.out.println("=====printf输出=====");
        System.out.printf("%d\n",a);
        System.out.printf("%s\n",b);
        System.out.println("=====去掉ln输出不换行=====");
        System.out.print(a);
        System.out.print(b);
    }
    public static void main4(String[] args) {
        String a="123";
        int b=Integer.parseInt(a);//字符串转整数
        System.out.println(b+1);
        System.out.println(a+1);

        int c=123;
        String d=String.valueOf(c);//整数转字符串
        System.out.println(c +1);
        System.out.println(d+1);
    }
    public static void main3(String[] args) {
        String s="quick";
        String s1="man";
        System.out.println(s);
        System.out.println(s1);
        System.out.println(s+s1);//+为拼接并输出字符串

        int a=10;
        int b=10;
        System.out.println(a + b + "a + b ==");
        System.out.println("a + b ==" + (a + b) );

    }

    public static void main2(String[] args) {
        char a='a';
        System.out.println(a);
        char b='孙';
        System.out.println(b);//java中char类型为2字节，汉字为2字节  c语言中char类型为1字节

        long a1=Long.MAX_VALUE;
        int a2=10;
        a2=(int)a1;
        System.out.println(a1);
        System.out.println(a2);
    }
    public static void main1(String[] args){
        int a=5;
        int b=2;
        System.out.println(a*1.0/b);

        float c=12.5f;
        System.out.println(c);

        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);

        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);

    }
}